import wordcloud


def createCiCloud(text, noText):
    """
        创建词云
    """
    # scale参数决定清晰度
    wc = wordcloud.WordCloud(font_path="C:\\Windows\\Fonts\\simhei.ttf",
                             stopwords=noText, background_color="white", scale=32)
    wc.generate(text)
    image = wc.to_image()
    image.show()


def main():
    createCiCloud("词云1 词云2 词云3 词云4", "黑名单")


if __name__ == "__main__":
    main()
